package com.training;

public class PassingArgClass{


public static void getEmployee(String name)
	{
	System.out.println("Name is "+name);
	}

public static void main(String args[]){
System.out.println("Main method");
getEmployee("Satheesh");

PassingArgClassReceiver sender = new PassingArgClassReceiver();
sender.printMethod("Passed Value");

}
}

class PassingArgClassReceiver{

void printMethod(String Rec){
	System.out.println("The String "+Rec+" is received");
}}
